package com.ddpyjqtd.fatory.functionfactory;

import com.ddpyjqtd.fatory.functionfactory.impl.HuaweiFactory;
import com.ddpyjqtd.fatory.functionfactory.impl.XiaomiFactory;

/**
 * @Description: 工厂方法模式
 * 
 * @author: ddpyjqtd
 * @Date: 2019年3月7日
 *
 */
public class FunctionFactoryTest {

	public static void main(String[] args) {
		ICellPhoneFactory factory = new HuaweiFactory();
		factory = new XiaomiFactory();
		System.out.println(factory.getCellPhone());
	}
}
